package edu.whut.mall.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @author wayne
 * @date 2020/05/17
 */
public class GroupBuyRecord implements Serializable {
    private Long id;

    /**
     * 团购规则id
     */
    private Long groupBuyRuleId;

    /**
     * 开始时间
     */
    private Date startTime;

    /**
     * 团购过期时间
     */
    private Date expireTime;

    /**
     * 最终结束时间
     */
    private Date endTime;

    /**
     * 团购价格
     */
    private BigDecimal groupBuyPrice;

    /**
     * 团购状态  0拼团中  1拼团成功 2 拼团失败
     */
    private Integer status;

    /**
     * 成团人数
     */
    private Integer successNumber;

    /**
     * 已有人数
     */
    private Integer currentNumber;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 是否删除
     */
    private Integer isDeleted;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getGroupBuyRuleId() {
        return groupBuyRuleId;
    }

    public void setGroupBuyRuleId(Long groupBuyRuleId) {
        this.groupBuyRuleId = groupBuyRuleId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Date expireTime) {
        this.expireTime = expireTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public BigDecimal getGroupBuyPrice() {
        return groupBuyPrice;
    }

    public void setGroupBuyPrice(BigDecimal groupBuyPrice) {
        this.groupBuyPrice = groupBuyPrice;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSuccessNumber() {
        return successNumber;
    }

    public void setSuccessNumber(Integer successNumber) {
        this.successNumber = successNumber;
    }

    public Integer getCurrentNumber() {
        return currentNumber;
    }

    public void setCurrentNumber(Integer currentNumber) {
        this.currentNumber = currentNumber;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", groupBuyRuleId=").append(groupBuyRuleId);
        sb.append(", startTime=").append(startTime);
        sb.append(", expireTime=").append(expireTime);
        sb.append(", endTime=").append(endTime);
        sb.append(", groupBuyPrice=").append(groupBuyPrice);
        sb.append(", status=").append(status);
        sb.append(", successNumber=").append(successNumber);
        sb.append(", currentNumber=").append(currentNumber);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", isDeleted=").append(isDeleted);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}